package com.tdkj.model.selfadvert;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

/**
 * XnkyUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "advert_selfAdvert")
public class BeanSelfAdvert extends BaseEntity {
	private static final long serialVersionUID = 6488539828124759956L;
	private String title;
	private String adverttype;//广告类别
	private Timestamp createtime;
	private String enterpricename;//企业名称
	private String mainproduct;//主营业务
	private String telephone;//联系电话
	private String fax;//企业传真
	private String address;//企业地址
	private String website;//企业网址
	private String content;//内容
	private String imgurl;//图片广告
	private String linkman;//企业名称
	private String email;//企业邮件
	private String status;//状态
	private String mobile;//手机
	private BeanUser user;
	
	@Column(name = "enterpricename", length = 100)
	public String getEnterpricename() {
		return enterpricename;
	}
	public void setEnterpricename(String enterpricename) {
		this.enterpricename = enterpricename;
	}
	@Column(name = "mobile", length = 100)
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	@Column(name = "title", length = 40)
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column(name = "adverttype", length = 40)
	public String getAdverttype() {
		return adverttype;
	}
	public void setAdverttype(String adverttype) {
		this.adverttype = adverttype;
	}
	@Column(name = "imgurl", length = 200)
	public String getImgurl() {
		return imgurl;
	}
	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	@Column(name = "mainproduct", length = 40)
	public String getMainproduct() {
		return mainproduct;
	}
	public void setMainproduct(String mainproduct) {
		this.mainproduct = mainproduct;
	}
	@Column(name = "telephone", length = 40)
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	@Column(name = "fax", length = 40)
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	@Column(name = "address", length = 100)
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	@Column(name = "website", length = 40)
	public String getWebsite() {
		return website;
	}
	public void setWebsite(String website) {
		this.website = website;
	}
	@Column(name = "content", length = 300)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@Column(name = "linkman", length = 40)
	public String getLinkman() {
		return linkman;
	}
	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}
	@Column(name = "email", length = 100)
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	@Column(name = "status", length = 40)
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "userid")
	public BeanUser getUser() {
		return user;
	}

	
	public void setUser(BeanUser user) {
		this.user = user;
	}
	
}